//处理文章详情逻辑
const db=require("../lib/db")
function articleList(){
    return new Promise((resolve,reject)=>{
        let sql="select *from article"
        db.querysql(sql).then(data=>{
            if(data.length==0){
   
            }else{
               
                resolve(data)
            }
        })
    })

 
}
    

module.exports=articleList